
package kaizone.haining.chaobohui.activity;

import kaizone.haining.chaobohui.json.BannerDO;
import kaizone.haining.chaobohui.setup.WeiXin;
import kaizone.haining.chaobohui.util.Cache;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.widget.TextView;

public class CopyrightActivity extends Activity {

    public static final String PASSWORD = "494335f73e5a7fb62439fb63cccf2ce1";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        TextView tv01 = new TextView(this);
        setContentView(tv01);
        tv01.setTextColor(Color.RED);
        StringBuilder sb = new StringBuilder();
        sb.append("广告地址：").append(BannerDO.URL).append("\n");
        sb.append("微信APP_ID: ").append(WeiXin.APP_ID).append("\n");
        sb.append("开发者：").append("岳立标").append("\n");
        sb.append("QQ：").append("596760835").append("\n");
        tv01.setText(sb);
    }

    public static boolean verify(String pass) {
        String d = Cache.hashKeyForDisk(pass);
        if (d.equals(PASSWORD)) {
            return true;
        }
        return false;
    }

    public static void come(Context context) {
        context.startActivity(new Intent(context, CopyrightActivity.class));
    }

}
